<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:directive.page import="com.anhry.app.safety.util.Util"/>
<%@ include file="/WEB-INF/pages/share/taglib.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>企业添加</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<%=basePath+Util.SKIN%>/css/right.css" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="<%=basePath%>/js/jquery-1.7.2.js"></script>
	<script type="text/javascript" src="<%=basePath%>/js/dbdialog/lhgdialog.js"></script>
	<script type="text/javascript" src="<%=basePath%>/js/check_jquery.js"></script>
	<script type="text/javascript" src="<%=basePath%>/js/addfj.js"></script>
	<script type="text/javascript" src="<%=basePath%>/js/util.js"></script>
	<script type="text/javascript" src="<%=path%>/js/My97DatePicker/WdatePicker.js" defer="defer"></script><base target="_self" />
	<script type="text/javascript">
		$(document).ready(function(){
		$("#btnSubmit1").click(function(){
		if($.trim($("input[name=docFile]").val()).length==0 || $("input[name=docFile]").val()=="")
			{
				$("#addMoredoc").next(".note4").html("该项为必填项，请填写").addClass

("note5");
				$("#addMoredoc").focus();
				return false;
			}else{
				$("#addMoredoc").next(".note5").html("*").removeClass("note5");
			}
		});
		$("#moredoc").mouseout(function(){//必填项
		if($.trim($("input[name=docFile]").val()).length==0 || $("input[name=docFile]").val()=="")
		{$("#addMoredoc").next(".note4").html("该项为必填项，请填写").addClass("note5");}
		else{$("#addMoredoc").next(".note5").html("*").removeClass("note5");}
        });
			$("#addMoreyh").click(function(){//附件添加
				addFj('moreyh','fjFile');
			});
			$("#addMoredoc").click(function(){//附件添加
				addFj('moredoc','docFile');
			});
		});
		function opdlg(){
			infoDialog('corpList','选择企业','900','450','<%=path%>/zczb/big_corpList.action');
		}
	</script>
  </head>
  
  <body>
	<div  class="body-box">
		<div class="map">
			<div class="map_con">
				您当前的位置：自查自报 &gt; 重大隐患管理 &gt; 管理部门上报隐患 &gt; 录入
			</div>
			
		</div>
		<div id="container">
			<form action="<%=basePath%>/zczb/big_yhSave.action" method="post" name="form1" enctype="multipart/form-data"  onsubmit="waitingDialog();">
		    	<table border="0" cellspacing="0" cellpadding="0"  width="100%" class="info_table">
					<tr>
						<td colspan="2" class="title_li">重大隐患录入</td>
					</tr>
					<tr>
						<td width="15%" class="title_td">企业名称：</td>
						<td>
							<input type="text" name="corpName" id="corpName" size="50%" value="" id="bit2" readonly="readonly"/><SPAN class="note4">*</SPAN><a href="javascript:void(0)" onclick="opdlg();">选择企业</a>
							<input type="hidden" name="corpId" value="" id="corpId">
						</td>
					</tr>
					<tr>
						<td width="15%" class="title_td">隐患类型：</td>
						<td>&nbsp;&nbsp;<s:select list="yhTypeList" name="yhType" headerKey="" headerValue="请选择" listKey="id" listValue="typeName" theme="simple" id="bselect1"></s:select><SPAN class="note4">*</SPAN> </td>
					</tr>
					<tr>
						<td width="15%" class="title_td">发现时间：</td>
						<td><input type="text" name="yhFxTime" type="text" id="byear1" value="<s:date name="yhFxTime" format="yyyy-MM-dd"/>" class="Wdate" onclick="WdatePicker({readOnly:true,maxDate:'%y-%M-%d'});"/><span class="note4">*</span></td>
					</tr>
					<tr>
						<td width="15%" class="title_td">隐患地点：</td>
						<td><input type="text" name="yhAdds" size="70%" value=""/></td>
					</tr>
					<tr>
						<td width="15%" class="title_td">隐患部位：</td>
						<td><input type="text" name="yhBwei" size="70%" value=""/></td>
					</tr>
					<tr>
						<td width="15%" class="title_td">企业整改责任人：</td>
						<td><input type="text" name="yhZgZrr" size="70%" value=""/></td>
					</tr>
					<tr>
						<td width="15%" class="title_td">联系方式：</td>
						<td><input type="text" name="yhZrrTel" size="70%" value=""/></td>
					</tr>
					<tr>
						<td width="15%" class="title_td">整改措施：</td>
						<td><s:radio list="#{'1':'限期整改','2':'停产停业整顿'}" value="1" name="yhZgType" theme="simple"/></td>
					</tr>
					<tr>
						<td width="15%" class="title_td">隐患的现状及其产生原因摘要：</td>
						<td>&nbsp;&nbsp;<textarea rows="4" cols="60" name="yhXcyy"></textarea> </td>
					</tr>
					<tr>
						<td width="15%" class="title_td">隐患的危害程度和整改难易程度分析摘要：</td>
						<td>&nbsp;&nbsp;<textarea rows="4" cols="60" name="yhYxfw"></textarea></td>
					</tr>
					<tr>
						<td width="15%" class="title_td">事故隐患的治理方案摘要：</td>
						<td>&nbsp;&nbsp;<textarea rows="4" cols="60" name="yhJkcs"></textarea></td>
					</tr>
					<tr>
						<td width="15%" class="title_td">隐患图片：</td>
						<td id="moreyh">
							<input type="button" name="fj1" value="添加附件" id="addMoreyh" class="link_input"/>
						</td>
					</tr>
					<tr>
						<td width="15%" class="title_td">隐患报告：</td>
						<td id="moredoc">
							<input type="button" name="fj2" value="添加附件" id="addMoredoc" class="link_input"/><SPAN class="note4">*</SPAN>
						</td>
					</tr>
					
				</table>
				<table border="0" cellspacing="0" cellpadding="0"  width="100%" class="info_table">
					<tr>
						<td align="center">
							<center>
							<input type="submit" name="btntj" class="link_input" id="btnSubmit1" value="提 交">
							<input type="reset" name="btnset" class="link_input" id="btnset" value="重 置">
							<input type="button" name="btn1" class="link_input" id="btnset1" value="返 回" onclick="window.location.href='<%=basePath %>/zczb/big_yhList.action?${urls }&num=${num }&size=${size }'">
							</center>
						</td>
					</tr>
				</table>
				<input type="hidden" name="yhId" value="${yh.id }">
			</form>
		</div>
	</div>
  </body>
</html>
